//
//  MainViewController.m
//  wtshoppingcite
//
//  Created by xiangming on 14-10-15.
//  Copyright (c) 2014年 TW. All rights reserved.
//

#import "MainViewController.h"
#import "GlobalViewControllers.h"
@interface MainViewController ()

@end

@implementation MainViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor: COLOR_RGBA(245, 245, 245,1)];
    
    UITabBar *tabBar = self.tabBar;
    UITabBarItem *aTabBarItem = [tabBar.items objectAtIndex:0];
    UITabBarItem *bTabBarItem = [tabBar.items objectAtIndex:1];
    UITabBarItem *cTabBarItem = [tabBar.items objectAtIndex:2];
    UITabBarItem *dTabBarItem = [tabBar.items objectAtIndex:3];
    
    [aTabBarItem setFinishedSelectedImage:[[UIImage imageNamed:@"home_select.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] withFinishedUnselectedImage:[[UIImage imageNamed:@"home.png"]imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
    
    
    [bTabBarItem setFinishedSelectedImage:[[UIImage imageNamed:@"nearby_select.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] withFinishedUnselectedImage:[[UIImage imageNamed:@"nearby.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
    [cTabBarItem setFinishedSelectedImage:[[UIImage imageNamed:@"share_select.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] withFinishedUnselectedImage:[[UIImage imageNamed:@"share.png"]  imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
    [dTabBarItem setFinishedSelectedImage:[[UIImage imageNamed:@"other_select.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal] withFinishedUnselectedImage:[[UIImage imageNamed:@"other.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
    
    

    [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                                       [UIColor grayColor], NSForegroundColorAttributeName,
                                                       nil,nil] forState:UIControlStateNormal];
    UIColor *titleHighlightedColor = [UIColor colorWithRed:217.0/255.0 green:76.0/255.0 blue:15.0/255.0 alpha:1.0];
    
    [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                                       titleHighlightedColor, NSForegroundColorAttributeName,
                                                       nil,nil] forState:UIControlStateHighlighted];
    [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                                       titleHighlightedColor, NSForegroundColorAttributeName,
                                                       nil,nil] forState:UIControlStateSelected];
}



@end
